﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace BuddHa.Wechat.Mini.Requests
{
    public class RequestGetWxACode
    {
        [JsonPropertyName("scene")]
        public string? Scene { get; set; }

        [JsonPropertyName("page")]
        public string? Page { get; set; }

        [JsonPropertyName("check_path")]
        public bool CheckPath { get; set; }

        [JsonPropertyName("env_version")]
        public string? EnvVersion { get; set; }

        [JsonPropertyName("width")]
        public string? Width { get; set; }

        [JsonPropertyName("auto_color")]
        public bool? AutoColor { get; set; }

        [JsonPropertyName("line_color")]
        public LineColorItem? LineColor { get; set; }

        [JsonPropertyName("is_hyaline")]
        public LineColorItem? IsHyaline { get; set; }

        public class LineColorItem
        {
            [JsonPropertyName("r")]
            public int R { get; set; }

            [JsonPropertyName("g")]
            public int G { get; set; }

            [JsonPropertyName("b")]
            public int B { get; set; }
        }
    }
}
